//
//  MPInputCellModel.m
//  MarkPlatform
//
//  Created by xiao6 on 2017/12/25.
//  Copyright © 2017年 AT. All rights reserved.
//

#import "MPInputCellModel.h"

@implementation MPInputCellModel
+ (instancetype)modelWithTitle:(NSString *)title placeholder:(NSString *)placeholder {
    return [self modelWithTitle:title placeholder:placeholder inputText:nil];
}
+ (instancetype)modelWithTitle:(NSString *)title placeholder:(NSString *)placeholder inputText:(NSString *)inputText {
    return [self modelWithTitle:title placeholder:placeholder inputText:inputText maxLength:NSIntegerMax keyboardType:UIKeyboardTypeDefault];
}
+ (instancetype)modelWithTitle:(NSString *)title placeholder:(NSString *)placeholder inputText:(NSString *)inputText maxLength:(NSInteger)maxLength keyboardType:(UIKeyboardType)keyboardType {
    MPInputCellModel *model = [[self alloc] init];
    model.title = title;
    model.placeholder = placeholder;
    model.inputText = inputText;
    model.maxLength = maxLength;
    model.keyboardType = keyboardType;
    return model;
}
@end
